﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SCRS.Model;

/// <summary>
/// 入库记录
/// </summary>
[Table("SYS_STORAGE_RECORD")]
public class StorageRecord
{
    /// <summary>
    /// 入库记录ID  
    /// </summary>
    [Key] [Column("ID")] public Guid Id { get; set; } = Guid.NewGuid();

    /// <summary>
    /// 商品编号
    /// </summary>
    [Column("COMMODITY_ID")]
    public string CommodityId { get; set; }

    /// <summary>
    ///  入库数量
    /// </summary>
    [Column("STORAGE_NUM")]
    public int StorageNum { get; set; }

    /// <summary>
    /// 入库时间
    /// </summary>
    [Column("STORAGE_TIME")]
    public DateTime StorageTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 入库人
    /// </summary>
    [Column("STORAGE_OPERATOR")]
    public int StorageOperator { get; set; }
}